﻿<%@ Page Title="Chi tiết nhóm hỏi đáp" Language="C#" AutoEventWireup="true" CodeBehind="FaqGroupEdit.aspx.cs" Inherits="VIT.Web.Admin.FaqGroupEdit" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../../Includes/Validation/Validation.css" rel="stylesheet" type="text/css" />
    <script src="../../Includes/Validation/ValidationEngine.js" type="text/javascript"></script>
    <script src="../../Includes/Validation/Validation.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <form id="aspnetForm" runat="server"> 
        <!-- Content (Right Column) -->
        <div id="content" class="box">
            <asp:Panel ID="pnAlert" runat="server">
                <p class="msg error" id="lblNhomCha" runat="server" visible="false">Danh mục không thể là con chính nó.</p>
                <p class="msg info" id="lblThanhCong" runat="server" visible="false">Dữ liệu đã lưu thành công.</p>
                <p class="msg done" id="lblThatBai" runat="server" visible="false">Không thể lưu dữ liệu.</p>
                <p class="msg error" id="lblHinhKoDung" runat="server" visible="false">Hình không đúng định dạng.</p>
	        </asp:Panel>
            <div id="ButtonInsert" class="toolbar" runat="server" visible="false">
                <VIT:Submit ID="Save" runat="server" Function="Album_Insert" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
                <VIT:Submit ID="Apply" runat="server" Function="Album_Insert" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
                <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
            </div>  
            <div id="ButtonModify" class="toolbar" runat="server" visible="false">
                <VIT:Submit ID="Save2" runat="server" Function="Album_Modify" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
                <VIT:Submit ID="Apply2" runat="server" Function="Album_Modify" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
                <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
            </div> 
            <div class="clr"></div>          
            <fieldset>
		        <legend>Thông tin cơ bản</legend>
                <table class="nostyle" style="float:left">                    
                    <tr>
                        <td align="right">Danh mục cha : </td>
                        <td>
                            <select id="parentid" name="parentid">
                                <option value="0"> -- None -- </option>
                                <%=this.genOption%>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">Hình ảnh : </td>
                        <td>
                            <asp:FileUpload ID="fupImg" runat="server" Width="375px" />
                        </td>
                    </tr>
                </table>
                <asp:Image ID="img" runat="server" width="100px" height="100px" style="float:left; margin-left:20px;" Visible="false"/>
            </fieldset>
            <fieldset>
		        <legend>Thông tin chi tiết</legend>
                <table class="nostyle">
                    <tr>
                        <td align="right">Ngôn ngữ :</td>
                        <td><asp:DropDownList ID="ddlLang" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="ddlLang_SelectedIndexChanged"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right">Tiêu đề :</td>
                        <td><asp:TextBox ID="txtTitle" runat="server" CssClass="validate[length[1,100]]" Width="400px" MaxLength="100"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" valign="middle">Mô tả :</td>
                        <td><asp:TextBox ID="txtDes" runat="server" TextMode="MultiLine" Width="400px" Height="100px" MaxLength="500"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Thứ tự :</td>
                        <td><asp:TextBox ID="txtOrder" runat="server" Width="50px" CssClass="validate[onlyNumber]" Text="50" MaxLength="3"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Hiển thị :</td>
                        <td><asp:CheckBox ID="chkPublish" runat="server" Checked="true"/></td>
                    </tr>
                </table>
            </fieldset>

            <script type="text/javascript">
                $("#aside ul li#FaqGroupList").addClass("submenu-active");
            </script>
        </div>
    </form>
</asp:Content>
